from django.contrib import admin
from .models import Post,Comment

# Register your models here.
from .models import Post

admin.site.register(Post)

@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
    #过滤和排序评论
    list_display = ('name','email','post','created','active')
    list_filter = ('active','created','updated')
    search_fields = ('name','email','body')